﻿using Inovout.Cloud.Applications.Security.Models;
using Inovout.Services;
using NHibernate.Criterion;

namespace Inovout.Cloud.Applications.Security.Services
{
    public class OAuthCredentialService : RepositoryService<OAuthCredential>
    {
        public OAuthCredential FindByClientId(string clientId)
        {
            return base.Repository.Find(Restrictions.Eq("ClientId", clientId));
        }
    }
}
